package com.microservice.salmon.db.enums;

import lombok.Getter;

/**
 * <p>
 * 商品常用枚举类型
 * </p>
 *
 * @author 王洪庆 2019-01-24 10:52
 */
@Getter
public enum GoodsEnum {

    /**
     * 商品状态 -1:违规 0:未审核 1:已审核
     */
    GOODS_STATUS_ILLEGAL("-1", "违规"),
    GOODS_STATUS_NO_AUDIT("0", "未审核"),
    GOODS_STATUS_AUDITED("1", "已审核");

    private Byte code;
    private String message;
    GoodsEnum(String code, String message) {
        this.code = Byte.valueOf(code);
        this.message = message;
    }
}
